#ifndef __TYPES_H__
#define __TYPES_H__

#define dumpregs()    printf("AX:0x%x\nBX:0x%x\nCX:0x%x\nDX:0x%x\nCS:0x%x\nDS:0x%x\nES:0x%x\nSS:0x%x\nSP:0x%x\nSI:0x%x\nDI:0x%x\nBP:0x%x\n", _AX, _BX, _CX, _DX, _CS, _DS, _ES, _SS, _SP, _SI, _DI, _BP)
#define l_dumpregs()  printf("AX:0x%x;BX:0x%x;CX:0x%x;DX:0x%x;CS:0x%x;DS:0x%x;\nES:0x%x;SS:0x%x;SP:0x%x;SI:0x%x;DI:0x%x;BP:0x%x\n", _AX, _BX, _CX, _DX, _CS, _DS, _ES, _SS, _SP, _SI, _DI, _BP)
#define dumpptr(ptr)  printf("[%04x:%04x]", (int)((long)((long)ptr >> 16)), (int)ptr)

#include <_null.h>              /* NULL */
#include <altair/types.h>       /* _Cdecl */

typedef unsigned char                 byte;
typedef unsigned int                  word;
typedef unsigned long                 dword;
typedef unsigned                      size_t;

#define	bool	   char
#define	true	   (1)
#define	false	   (0)

#define OSINT 0x50

/* TEXT_COL, globalni promenna urcujici barvu textu */
char TEXT_COL = 0x07;

#endif
